<?php
declare (strict_types = 1);

namespace app\demo\controller;

class Index
{
    public function heightwhere()
    {
        //聚合查询
        //$str=Db::name('user')->count();
        //$max=Db::name('user')->max('addtime');
        //$min=Db::name('user')->min('addtime');
        //$avg=Db::name('user')->avg('id');
        //$sum=Db::name('user')->sum('id');

        echo "<pre>";
        print_r($sum);
        echo "<pre>";

    }
}
